package pers.xhh.frontapi.entity.to.user;

import javax.validation.constraints.Pattern;

/**
 * @author wei-xhh
 * @date 2020-12-14
 */
public class AuthTo {

    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$", message = "手机号格式错误")
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
